var common = require('common.js')

Page({
  data: {
  weather: {},
	tel: '15202479686',
  trq: '029-88888888',
  items: [
    { 'tel': '029-86928208','type':'高陵天燃气' },
    { 'tel': '029-86913317', 'type': '高陵房管局' },
    { 'tel': '029-86926509', 'type': '契税大厅电话' },
  ],
  cateImg:[
    "../../res/img/car1.png",
    "../../res/img/z.png",
  ],
  imgUrls: [
    '../../res/img/1.jpg',
    '../../res/img/1.jpg'
    
  ],
  indicatorDots: true,
  autoplay: true,
  interval: 5000,
  duration: 1000,
  url: '../../pages/list/list'
	
  },
  onLoad: function () {
    var that = this;
    common.loadWeatherData(function (data) {
      that.setData({
        weather: data
      });
    });
  },
  navigateTo:function(e) {
    wx.makePhoneCall({
      phoneNumber: e.currentTarget.dataset.normalTel
    })
    console.log(e.currentTarget.dataset.normalTel)
  }
  
})